//
//  SRPpgMeasureState.m
//  CareRingApp
//
//  Created  on 2025/3/17.
//
    

#import "CAPpgMeasureState.h"

@implementation CAPpgMeasureState
-(instancetype)initWith:(NSData *)data
{
    if (self = [super init]) {
        if (data.length != 20) {
            return self;
        }
        uint8_t * dataBytes = (uint8_t *)[data bytes];
      
        self.isWearing = dataBytes[2];
        self.isDimming = dataBytes[3]; // 是否调光中
    }
    return self;
}
@end
